/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.deployment.manager;

import java.io.Serializable;
import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.bean.ViewScoped;

/**
 *
 * @author roniere
 */
@ManagedBean
@SessionScoped
public class ManagerConfig implements Serializable{
    
    public String page;

    public ManagerConfig() {
    }
    
    @PostConstruct
    public void init(){
        page = "criarTitulo.xhtml";
    }

    public String getPage() {
        return page;
    }

    public void setPage(String page) {
        this.page = page;
    }
    
    public void atribui(String pag){
        this.page = pag;    
    }
    
    public String headeName(){
        if(this.page.equals("criarOperacao.xhtml")){
            return "Operação";
        }
        if(this.page.equals("criarTitulo.xhtml")){
            return "Titulo";
        }
        return "";
    }
}
